package cn.itcast.music.entity;

import androidx.annotation.NonNull;

@SuppressWarnings("unused")
public class MusicHistory {

    private final int id;

    private final String dateTime;

    private final Music music;

    public MusicHistory(String dateTime, Music music) {
        this(0, dateTime, music);
    }

    public MusicHistory(int id, String dateTime, Music music) {
        this.id = id;
        this.dateTime = dateTime;
        this.music = music;
    }

    public int getId() {
        return id;
    }

    public String getDateTime() {
        return dateTime;
    }

    public Music getMusic() {
        return music;
    }

    @NonNull
    @Override
    public String toString() {
        return "PlayingHistory{" + "dateTime='" + dateTime + '\'' + ", music="
                + music + '}';
    }

}
